#include "netwritecompleteevent.h"
#include <string.h>

NetWriteCompleteEvent::NetWriteCompleteEvent() :
    Event(ET_NET_WRITECOMPLETE),
    m_current(0)
{
    memset(m_memory, 0, NET_BUFFER_SIZE);
}

NetWriteCompleteEvent::~NetWriteCompleteEvent()
{

}

unsigned char *NetWriteCompleteEvent::memory()
{
    return m_memory;
}

unsigned long NetWriteCompleteEvent::netKey()
{
    return m_netKey;
}

size_t NetWriteCompleteEvent::length()
{
    return NET_BUFFER_SIZE;
}

size_t NetWriteCompleteEvent::dataLength()
{
    return m_current;
}

void NetWriteCompleteEvent::setDataLength(size_t size)
{
    m_current = size;
}

void NetWriteCompleteEvent::setNetKey(unsigned long netKey)
{
    m_netKey = netKey;
}
